Time spent: 4 hours spent in total
Objective: Find, analyze, recreate, and document five vulnerabilities affecting an old version of WordPress
- Authenticated Stored Cross-Site Scripting (XSS) in YouTube URL Embeds (CVE-2017-6817)
- Summary:
- Vulnerability types: XSS
- Tested in version: 4.2
- Fixed in version: 4.2.13
- GIF Walkthrough:
- Steps to recreate:
- On a post or page, embed a YouTube url with the format of:
[embed src='https://youtube.com/embed/whateverPAYLOAD'][/embed]
- Requires usage of escape characters to avoid filtering.
- Ex:
[embed src='https://youtube.com/embed/whatever\x3csvg onload=alert(1)\x3e'][/embed]
- View the page with the payload
- On a post or page, embed a YouTube url with the format of:
- Affected source code:
- Large File Upload Error XSS (CVE-2017-9061)
- Summary:
- Vulnerability types: XSS
- Tested in version: 4.2
- Fixed in version: 4.2.15
- GIF Walkthrough:
- Steps to recreate:
- Go to the wp-admin add media page
../wp-admin/media-new.php
- Upload a 20MB or larger file with the filename as the payload (Example
thanks nasa<img src=x onerror=alert(1)>.png
)
- Go to the wp-admin add media page
- Affected source code:
- Nav Menu Title Cross-Site Scripting (XSS) (CVE-2015-5733)
- Summary:
- Vulnerability types: XSS
- Tested in version: 4.2
- Fixed in version: 4.2.4
- GIF Walkthrough:
- Steps to recreate:
- Navigate to the widget page in wp-admin
- Create a new text widget, with any title. Second entry-box is for payload.
- Navigate to any page on the host, widget loads automatically and payload runs.
- Affected source code:
- Authenticated Cross-Site Scripting (XSS) via Media File Metadata (CVE-2017-6814)
- Summary:
- Vulnerability types: XSS
- Tested in version: 4.2
- Fixed in version: 4.2.13
- GIF Walkthrough:
- Steps to recreate:
- Add an mp3 with the title metadata set to
<noscript><script>alert(1);</script>
- Insert a playlist containing the mp3 into a post
- View the page
- Add an mp3 with the title metadata set to
- Affected source code:
List any additional assets, such as scripts or files
GIFs created with LiceCap.
Describe any challenges encountered while doing the work
Copyright [2017] [Francesca]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.